/**************************************************************************
 * @doc TRAN
 * @module AUTOSTTL.H |  
 * Include file for the Auto Settle file.
 *
 * Product     :   SoftPay 2000 (Global Payment Methodology).
 * <nl>Developer   :   SoftPay Development Team (I_SP2000).
 * <nl>Notes       :
 *
 * @head3 TRAN Functions |
 * @index | TRAN
 * @end
 *
 * Copyright (c) 1996-2000 by VeriFone Inc. All rights reserved.
 * 
 * No part of this software may be used, stored, compiled, reproduced,
 * modified, transcribed, translated, transmitted, or transferred, in any form 
 * or by any means whether electronic, mechanical, magnetic, optical, 
 * or otherwise, without the express prior written permission of VeriFone, Inc.
 *
 * Revision History
 * ------------------------------------------------------------------------
$Log: /SoftPay/SPK2SIM/Source/Include/autosttl.h $
 ********************************************************************************/
 
#define AST_FILE_NAME         "ast.dat"

typedef struct TagAST_REC
{
	char szAdjustedSettleTime[DATE_SIZE + TIME_SIZE+1];
	int inRetryCounter;
	int inMerchantRecordNumber;

} AST_REC;

#define SIZE_AST_REC  sizeof(AST_REC)

void vdResetAutoSettleData (AST_REC *psrAST);
void vdAdjustAutoSettleTime(char *pszTime, char *szDate, AST_REC *psrAST);
VS_BOOL  fAutoSettleTime(char *pszTime, char *pszDate,  AST_REC *psrAST);
int inCheckAutoSettle (void);
int inIdleAutoSettle (TRANSACTION_OBJECT *pobTran);
void vdSetAllMITRecords(char *pszDate, int inRecord);

